package com.pan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pan.domain.Notice;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface INoticeService extends IService<Notice> {
    //获取所有公告
    List<Notice> getAllNote();

    //获取NDelete为1的公告
    List<Notice> getNotDeleteNotice();

    //查询NDelete为1的公告
    Notice getByIdE(Integer id);

    //获取最新公告
    Notice getLastNotice();

    //操作员修改通知
    Boolean updateByIdE(Notice notice);

    //逻辑删除
    Boolean LogicDelete(Integer id);

}

